package com.pingan.agentbank.aaos.testme;

import com.pingan.agentbank.aaos.pojo.ApproLineInfo;
import com.pingan.agentbank.aaos.pojo.Config;
import com.pingan.agentbank.aaos.util.FixedLenUtil;
import com.pingan.vframe.sdo.ServiceData;
import org.junit.Test;

import java.util.Locale;

public class BBWBFieldTest {
    public  ApproLineInfo approLineInfo = new ApproLineInfo();
    public  ServiceData serviceData = new ServiceData();
    public  ServiceData sourServiceData = new ServiceData();
    public Config config = new Config();
    public String approMsg = "";
    public String fileName = "";
    public int count;
    public String code = "";


    //OWNING_BRANCH
    public void method0(){
        //1-10
        serviceData.putString("1","6478");
        //serviceData.putString("2",approLineInfo.getDl_application_no());
        String three = "";
        String descThree = approLineInfo.getCreditcardtype()+approLineInfo.getCreditcardcategory()+approLineInfo.getAffinitycode();
        if ("CC0000".equals(descThree)){
            three = "0007";
        } else if ("CG0000".equals(descThree)){
            three = "0008";
        } else if ("CP0001".equals(descThree)){
            three = "0009";
        } else if ("CC0002".equals(descThree)){
            three = "0011";
        }
        serviceData.putString("3",three);
        serviceData.putString("4","1");
        serviceData.putString("5","");
        serviceData.putString("6","");
        serviceData.putString("7","21");
        serviceData.putString("8",approLineInfo.getExpand_branch());
        serviceData.putString("9","");
        serviceData.putString("10","");
        serviceData.putString("11","");
        serviceData.putString("12","01");
        serviceData.putString("13",approLineInfo.getGlobal_id());
        serviceData.putString("14","");
        serviceData.putString("15",approLineInfo.getChinese_name());
        serviceData.putString("16",approLineInfo.getOwner_name());
        serviceData.putString("17",approLineInfo.getSex());
        serviceData.putString("18",approLineInfo.getBirth_date());
        serviceData.putString("19","1");
        String twenty = "";
        String marital_status = approLineInfo.getMarital_status();
        String children_flag = approLineInfo.getChildren_flag();
        if (children_flag==null || "".equals(children_flag)){
            if ("2".equals(marital_status)){
                twenty = "M";
            } else if ("9".equals(marital_status)){
                twenty = "O";
            } else if ("1".equals(marital_status)){
                twenty = "S";
            }
        } else if ("2".equals(children_flag)&&"2".equals(marital_status)){
            twenty = "2";
        } else if ("1".equals(children_flag)&&"2".equals(marital_status)){
            twenty = "1";
        }

        serviceData.putString("20",twenty);

        String two_one = "";
        String education = approLineInfo.getEducation();
        if ("08".equals(education)){
            two_one = "1";
        } else if ("07".equals(education)){
            two_one = "2";
        } else if ("05".equals(education)){
            two_one = "3";
        } else if ("04".equals(education)){
            two_one = "4";
        } else if ("03".equals(education)){
            two_one = "5";
        } else if ("02".equals(education)){
            two_one = "6";
        }
        serviceData.putString("21",two_one);
        serviceData.putString("22",sourServiceData.getString("post"));
        serviceData.putString("23","");
        serviceData.putString("24",approLineInfo.getPhone_area());
        serviceData.putString("25",approLineInfo.getHome_phome());
        serviceData.putString("26",approLineInfo.getMobile());
        serviceData.putString("27",approLineInfo.getEmail());
        serviceData.putString("28","");
        serviceData.putString("29","01");
        serviceData.putString("30",approLineInfo.getAddress1());

        serviceData.putString("31",approLineInfo.getAddress2());
        serviceData.putString("32",approLineInfo.getAddress3());
        serviceData.putString("33",approLineInfo.getAddress4());
        serviceData.putString("34",approLineInfo.getPostcode());
        String three_five = "";
        String residential_type = approLineInfo.getResidential_type();
        if ("3".equals(residential_type)){
            three_five = "1";
        } else if ("2".equals(residential_type)){
            three_five = "2";
        } else if ("1".equals(residential_type)){
            three_five = "3";
        } else if ("5".equals(residential_type)){
            three_five = "4";
        } else if ("4".equals(residential_type)){
            three_five = "5";
        } else if ("9".equals(residential_type)){
            three_five = "6";
        }
        serviceData.putString("35",three_five);
        serviceData.putString("36",approLineInfo.getReside_years());
        serviceData.putString("37",approLineInfo.getMonthly_mortgage_payment());
        serviceData.putString("38",approLineInfo.getReside_add1());
        serviceData.putString("39",approLineInfo.getReside_add2());
        serviceData.putString("40",approLineInfo.getReside_add3());

        serviceData.putString("41",approLineInfo.getReside_add4());
        serviceData.putString("42",approLineInfo.getReside_postcode());
        serviceData.putString("43","");
        serviceData.putString("44","");
        serviceData.putString("45","");
        serviceData.putString("46","");
        serviceData.putString("47","");
        serviceData.putString("48",approLineInfo.getCar_brand());
        serviceData.putString("49","");
        serviceData.putString("50",approLineInfo.getCar_number());
        serviceData.putString("51","");
        serviceData.putString("52",approLineInfo.getEmployer_add1());
        serviceData.putString("53",approLineInfo.getEmployer_add2());
        serviceData.putString("54",approLineInfo.getEmployer_add3());
        serviceData.putString("55",approLineInfo.getEmployer_add4());
        serviceData.putString("56",approLineInfo.getEmployer_postcode());
        serviceData.putString("57",approLineInfo.getCompanyname());
        serviceData.putString("58",approLineInfo.getDepartname());
        serviceData.putString("59","");
        String six_zero = "";
        String job_code = approLineInfo.getJob_code();
        if ("99999".equals(job_code)){
            six_zero = "A018";
        }
        if (job_code!=null && !"".equals(job_code) && job_code.length()==5 && job_code.substring(3,5).equals("00")){
            String first = job_code.substring(0,1);
            int second = Integer.parseInt(job_code.substring(1,3));
            if (first.equals("1")){
                if (second>=1 && second<=6){
                    six_zero = "A001";
                }
            } else if (first.equals("2")){
                if (second == 1){
                    six_zero = "A005";
                }
                if (second == 2){
                    six_zero = "A014";
                }
                if (second == 3){
                    six_zero = "A013";
                }
                if (second == 4){
                    six_zero = "A014";
                }
                if (second == 5){
                    six_zero = "A019";
                }
                if (second == 6){
                    six_zero = "A007";
                }
                if (second == 7){
                    six_zero = "A016";
                }
                if (second == 8){
                    six_zero = "A002";
                }
                if (second == 9){
                    six_zero = "A012";
                }
                if (second == 10){
                    six_zero = "A012";
                }
                if (second==99){
                    six_zero = "A018";
                }
            } else if (first.equals("3")){
                if (second==1 || second ==2 || second ==99){
                    six_zero = "A018";
                }
            } else if (first.equals("4")){

                if (second==1){
                    six_zero = "A009";
                }
                if (second==2){
                    six_zero = "A015";
                }
                if (second==3){
                    six_zero = "A010";
                }
                if (second==4){
                    six_zero = "A005";
                }
                if (second==5){
                    six_zero = "A007";
                }
                if (second==6 || second==7){
                    six_zero = "A009";
                }
                if (second==8){
                    six_zero = "A018";
                }
                if (second>=9 && second<=11){
                    six_zero = "A003";
                }
                if (second==12){
                    six_zero = "A018";
                }
                if (second==13){
                    six_zero = "A012";
                }
                if (second==14 || second ==99){
                    six_zero = "A018";
                }
            } else if (first.equals("5")){
                if (second>=1 && second<=5){
                    six_zero = "A013";
                }
                if (second==99){
                    six_zero = "A013";
                }
            } else if (first.equals("6")){
                if (second>=1 && second<=31){
                    six_zero = "A014";
                }
                if (second==99){
                    six_zero = "A014";
                }
            } else if (first.equals("7")){
                if (second==0){
                    six_zero = "A004";
                }
            } else if (first.equals("8")){
                if (second==0){
                    six_zero = "A018";
                }
            }
        }


        serviceData.putString("60",approLineInfo.getJob_code());

        serviceData.putString("61","");
        serviceData.putString("62",sourServiceData.getString("company_type"));
        serviceData.putString("63","");
        String employer_phone_areano = approLineInfo.getEmployer_phone_areano();
        if (employer_phone_areano==null){
            employer_phone_areano = "";
        }
        String employer_phone = approLineInfo.getEmployer_phone();
        if (employer_phone==null){
            employer_phone = "";
        }
        String six_four = employer_phone_areano + employer_phone;
        if ("".equals(six_four)){
            six_four = "00000000";
        }
        serviceData.putString("64",six_four);
        serviceData.putString("65","");
        serviceData.putString("66",approLineInfo.getWorking_years());
        String six_seven = "";
        String annual_income = approLineInfo.getAnnual_income();

        if (annual_income!=null && !"".equals(annual_income)){

            if (annual_income.length()>4){
                int len = annual_income.length();
                six_seven = annual_income.substring(len-4,len)+"0";
            } else {
                int len = 4 - annual_income.length();
                StringBuffer sb = new StringBuffer();
                for (int i = 0;i<len;i++){
                    sb.append("0");
                }
                sb.append(annual_income);
                sb.append("0");
                six_seven = sb.toString();
            }
        }

        serviceData.putString("67",six_seven);
        serviceData.putString("68","");
        serviceData.putString("69","");
        serviceData.putString("70","");

        serviceData.putString("71","");
        serviceData.putString("72","");
        serviceData.putString("73","");
        serviceData.putString("74","");
        serviceData.putString("75","");
        serviceData.putString("76","");
        serviceData.putString("77","");
        serviceData.putString("78","");
        serviceData.putString("79",approLineInfo.getImmidediate_name());
        serviceData.putString("80","");

        serviceData.putString("81","");
        String eight_two = "";
        String immidediate_relation = approLineInfo.getImmidediate_relation();
        if ("4".equals(immidediate_relation)){
            eight_two = "D";
        } else if ("5".equals(immidediate_relation)){
            eight_two = "E";
        } else if ("6".equals(immidediate_relation)){
            eight_two = "F";
        } else if ("7".equals(immidediate_relation)){
            eight_two = "H";
        }
        serviceData.putString("82",eight_two);
        serviceData.putString("83",approLineInfo.getImmidediate_mobile());
        serviceData.putString("84","");
        serviceData.putString("85",approLineInfo.getOther_name());
        serviceData.putString("86","");
        serviceData.putString("87","");
        String eight_eight = "";
        String other_relation = approLineInfo.getOther_relation();
        if ("1".equals(other_relation)){
            eight_eight = "B";
        } else if ("2".equals(other_relation)){
            eight_eight = "C";
        } else if ("3".equals(other_relation)){
            eight_eight = "A";
        } else if ("4".equals(other_relation)){
            eight_eight = "Z";
        }
        serviceData.putString("88",eight_eight);
        serviceData.putString("89","");
        serviceData.putString("90",approLineInfo.getOther_mobile());
        serviceData.putString("91","");
        serviceData.putString("92","");
        serviceData.putString("93","");
        serviceData.putString("94","");
        serviceData.putString("95","");
        serviceData.putString("96","");
        serviceData.putString("97","");
        serviceData.putString("98","");
        serviceData.putString("99","");
        serviceData.putString("100","");
        serviceData.putString("101","");
        serviceData.putString("102","");
        serviceData.putString("103","");
        serviceData.putString("104","");
        serviceData.putString("105","");
        serviceData.putString("106","");
        serviceData.putString("107","");
        serviceData.putString("108","");
        serviceData.putString("109","");
        serviceData.putString("110","");
        serviceData.putString("111","");
        serviceData.putString("112","");
        serviceData.putString("113","");
        serviceData.putString("114","");
        serviceData.putString("115","");
        serviceData.putString("116","");
        serviceData.putString("117","");
        serviceData.putString("118","");
        serviceData.putString("119","");
        serviceData.putString("120","");
        serviceData.putString("121","");
        serviceData.putString("122","");
        serviceData.putString("123","");
        serviceData.putString("124","");
        serviceData.putString("125","");
        serviceData.putString("126","");
        serviceData.putString("127","");
        serviceData.putString("128","");
        serviceData.putString("129","");
        serviceData.putString("130","");
        serviceData.putString("131","");
        serviceData.putString("132","");
        serviceData.putString("133","");
        serviceData.putString("134","");
        serviceData.putString("135","");
        serviceData.putString("136","");
        serviceData.putString("137","");
        serviceData.putString("138","");
        serviceData.putString("139","");
        serviceData.putString("140","");
        serviceData.putString("141","");
        serviceData.putString("142","");
        serviceData.putString("143","");
        serviceData.putString("144","");
        serviceData.putString("145","");
        serviceData.putString("146","");
        serviceData.putString("147","");
        serviceData.putString("148","");
        serviceData.putString("149","");
        serviceData.putString("150","");
        serviceData.putString("151","");
        serviceData.putString("152","");
        serviceData.putString("153","");
        serviceData.putString("154","");
        serviceData.putString("155","");
        serviceData.putString("156","");
        serviceData.putString("157","");
        serviceData.putString("158","");
        serviceData.putString("159","");
        serviceData.putString("160","");
        serviceData.putString("161","");
        serviceData.putString("162","");
        serviceData.putString("163","");
        serviceData.putString("164","");
        serviceData.putString("165","");
        serviceData.putString("166","");
        serviceData.putString("167","");
        serviceData.putString("168","");
        serviceData.putString("169","");
        serviceData.putString("170","");
        serviceData.putString("171","");
        serviceData.putString("172","");
        serviceData.putString("173","");
        serviceData.putString("174","");
        serviceData.putString("175","");
        serviceData.putString("176",approLineInfo.getBank_account());
        String one_seven_seven = "";
        if ("0".equals(sourServiceData.getString("autoPayOff"))){
            one_seven_seven = "T";
        } else if ("1".equals(sourServiceData.getString("autoPayOff"))){
            one_seven_seven = "";
        }
        serviceData.putString("177",one_seven_seven);
        serviceData.putString("178","");
        serviceData.putString("179","");
        serviceData.putString("180","");
        serviceData.putString("181","");
        serviceData.putString("182","");
        serviceData.putString("183","");
        serviceData.putString("184","");
        serviceData.putString("185","");
        serviceData.putString("186","");
        serviceData.putString("187","");
        serviceData.putString("188","");
        serviceData.putString("189",approLineInfo.getExpand_branch());
        String one_nine_zero = sourServiceData.getString("sales_code");
        if (one_nine_zero == null || "".equals(one_nine_zero)){
            one_nine_zero = "999999";
        }
        serviceData.putString("190",one_nine_zero);

        String one_nine_one = sourServiceData.getString("salses_name");
        if (one_nine_one == null || "".equals(one_nine_one)){
            one_nine_one = "网销";
        }
        serviceData.putString("191",one_nine_one);
        serviceData.putString("192",approLineInfo.getReferrer_name());
        serviceData.putString("193","");
        serviceData.putString("194",approLineInfo.getReferrer_mobile());
        serviceData.putString("195","");
        serviceData.putString("196","");
        serviceData.putString("197","10");
        String one_nine_eight = "";
        String send_addr_type = approLineInfo.getSend_addr_type();
        if ("1".equals(send_addr_type)){
            one_nine_eight = "H";
        } else if ("2".equals(send_addr_type)){
            one_nine_eight = "B";
        }
        serviceData.putString("198",one_nine_eight);
        serviceData.putString("199","");

        String two_zero_zero = "";
        String owner_name = approLineInfo.getOwner_name();
        int index = owner_name.indexOf(" ");
        two_zero_zero = owner_name.substring(0,index)+"/"+owner_name.substring(index+1,owner_name.length())+"/";
        serviceData.putString("200",two_zero_zero);
        serviceData.putString("201","");
        serviceData.putString("202","1");
        serviceData.putString("203","1");
        serviceData.putString("204","1");
        serviceData.putString("205","");
        serviceData.putString("206","");
        serviceData.putString("207","");
        serviceData.putString("208","EM");
        serviceData.putString("209","");
        serviceData.putString("210","");

        serviceData.putString("211","");
        serviceData.putString("212","");
        String two_one_three = "";
        String two_one_four = "";
        String audit_result = approLineInfo.getAudit_result();
        String refuse_code = approLineInfo.getRefuse_code();
        if (audit_result.equals("P")){
            two_one_three = "A";
            two_one_four = "100";
        } else if (audit_result.equals("D")){
            if (refuse_code!=null && !"".equals(refuse_code)){
                two_one_three = refuse_code.substring(0,1);
                two_one_four = refuse_code.substring(1,4);
            }
        }
        serviceData.putString("213",two_one_three);
        serviceData.putString("214",two_one_four);
        serviceData.putString("215",approLineInfo.getAmount());
        serviceData.putString("216","");
        serviceData.putString("217","");
        serviceData.putString("218","POST");
        serviceData.putString("219","0");
        serviceData.putString("220","");

        serviceData.putString("221","B");
        serviceData.putString("222","");
        serviceData.putString("223","");
        serviceData.putString("224","");
        serviceData.putString("225","");
        serviceData.putString("226","");
        serviceData.putString("227","");
        serviceData.putString("228","");
        serviceData.putString("229","");
        serviceData.putString("230","");

        serviceData.putString("231","");
        serviceData.putString("232","");
        serviceData.putString("233","0");
        serviceData.putString("234","");
        serviceData.putString("235","");
        serviceData.putString("236","");
        serviceData.putString("237","");
        serviceData.putString("238","");
        serviceData.putString("239","");
        serviceData.putString("240","");

        serviceData.putString("241","");
        serviceData.putString("242","");
        serviceData.putString("243","");
        serviceData.putString("244","");
        serviceData.putString("245","");
        serviceData.putString("246","");
        serviceData.putString("247","");
        serviceData.putString("248","");
        serviceData.putString("249","");
        serviceData.putString("250","");
        serviceData.putString("251","");
        serviceData.putString("252","");
        serviceData.putString("253","");
        serviceData.putString("254",sourServiceData.getString("bank_with_relation"));
        serviceData.putString("255","");
        serviceData.putString("256","");
        serviceData.putString("257","");
        serviceData.putString("258","");
        serviceData.putString("259","");
        serviceData.putString("260","");
        serviceData.putString("261","");
        serviceData.putString("262","");
        String two_six_three = "4";
        String onlineSQLFlag = sourServiceData.getString("onlineSQFlag");
        if ("Y".equals(onlineSQLFlag)){
            two_six_three = "1";
        }
        String two_six_four = "";
        String app_source_flag = sourServiceData.getString("app_source_flag");
        if ("1".equals(app_source_flag)){
            two_six_four = "2";
        } else if ("2".equals(app_source_flag)){
            two_six_four = "1";
        } else if ("3".equals(app_source_flag)){
            two_six_four = "2";
        } else if ("4".equals(app_source_flag)){
            two_six_four = "4";
        } else if ("5".equals(app_source_flag)){
            two_six_four = "3";
        } else if ("0".equals(app_source_flag)){
            two_six_four = "2";
        }
        serviceData.putString("263",two_six_three);
        serviceData.putString("264",two_six_four);
        serviceData.putString("265","");
        serviceData.putString("266","");
        serviceData.putString("267","");
        serviceData.putString("268","");
        serviceData.putString("269","");
        serviceData.putString("270","");
        serviceData.putString("271","");
        serviceData.putString("272","");
        serviceData.putString("273","");
        serviceData.putString("274","");
        serviceData.putString("275","");
        serviceData.putString("276","");
        serviceData.putString("277","");
        serviceData.putString("278","");
        serviceData.putString("279","");
        serviceData.putString("280","");
        serviceData.putString("281","");
        serviceData.putString("282","");
        serviceData.putString("283","");
        serviceData.putString("284","");
        serviceData.putString("285","");
        serviceData.putString("286",approLineInfo.getGlobal_eff_enddate());
        serviceData.putString("287","");
        serviceData.putString("288","");
        serviceData.putString("289","");
        serviceData.putString("290","");
        serviceData.putString("291","");
        serviceData.putString("292","");
        serviceData.putString("293","");
        serviceData.putString("294","");
        serviceData.putString("295","");
        serviceData.putString("296","");
        serviceData.putString("297","");
        serviceData.putString("298","");
        serviceData.putString("299","");
        serviceData.putString("300","");
        serviceData.putString("301","");
        serviceData.putString("302","");
        serviceData.putString("303","");
        serviceData.putString("304","");
        serviceData.putString("305","");
        serviceData.putString("306","");
        serviceData.putString("307","");
        serviceData.putString("308","");
        serviceData.putString("309","");
        serviceData.putString("310","");
        serviceData.putString("311","");
        serviceData.putString("312","");
        serviceData.putString("313","");
        serviceData.putString("314","");
        serviceData.putString("315","");
        serviceData.putString("316","");
        serviceData.putString("317","");
        serviceData.putString("318","");
        serviceData.putString("319","");
        serviceData.putString("320","");
        serviceData.putString("321","");
        serviceData.putString("322","");
        serviceData.putString("323","");
        serviceData.putString("324",approLineInfo.getExpand_branch());
        serviceData.putString("325","");
        serviceData.putString("326","");
        serviceData.putString("327","");
        serviceData.putString("328","");
        serviceData.putString("329","");
        serviceData.putString("330","");
        serviceData.putString("331","");
        serviceData.putString("332","");
        serviceData.putString("333","");
        serviceData.putString("334","");
        serviceData.putString("335","");
        serviceData.putString("336","");
        serviceData.putString("337","");
        serviceData.putString("338","");
        serviceData.putString("339","");
        serviceData.putString("340","");
        serviceData.putString("341","");
        serviceData.putString("342","");
        serviceData.putString("343","");
        serviceData.putString("344","");
        serviceData.putString("345","");
        String three_four_six = "";
        if ("Y".equals(sourServiceData.getString("onlineSQFlag"))){
            three_four_six = sourServiceData.getString("bar_code");
        }
        serviceData.putString("346",three_four_six);
        String three_four_seven = "";
        String jobCode = approLineInfo.getJob_code();

        if (jobCode!=null && !"".equals(jobCode) && jobCode.length()==5 && jobCode.substring(3,5).equals("00")){
            String first = jobCode.substring(0,1);
            int second = Integer.parseInt(jobCode.substring(1,3));
            if (first.equals("1")){
                if (second>=1 && second<=6){
                    three_four_seven = "00";
                }
            } else if (first.equals("2")){
                if (second>=1 && second<=10){
                    three_four_seven = "01";
                }
                if (second==99){
                    three_four_seven = "01";
                }
            } else if (first.equals("3")){
                if (second==1 || second ==2 || second ==99){
                    three_four_seven = "02";
                }
            } else if (first.equals("4")){
                if (second>=4 && second<=12){
                    three_four_seven = "03";
                }
                if (second==2 || second==14 || second==99){
                    three_four_seven = "03";
                }
                if (second==1){
                    three_four_seven = "04";
                }
                if (second==3){
                    three_four_seven = "06";
                }
                if (second==13){
                    three_four_seven = "08";
                }
            } else if (first.equals("5")){
                if (second>=1 && second<=5){
                    three_four_seven = "09";
                }
                if (second==99){
                    three_four_seven = "09";
                }
            } else if (first.equals("6")){
                if (second>=1 && second<=31){
                    three_four_seven = "10";
                }
                if (second==99){
                    three_four_seven = "10";
                }
            } else if (first.equals("7")){
                if (second==0){
                    three_four_seven = "11";
                }
            } else if (first.equals("8")){
                if (second==0){
                    three_four_seven = "12";
                }
            }
        }
        if ("99999".equals(jobCode)){
            three_four_seven = "13";
        }
        serviceData.putString("347",three_four_seven);
        String three_four_eight = "";
        if ("Y".equals(sourServiceData.getString("onlineSQFlag"))){
            three_four_eight = "";
        } else {
            three_four_eight = "01";
        }
        serviceData.putString("348",three_four_eight);
        serviceData.putString("349",sourServiceData.getString("outAppNo"));
        serviceData.putString("350","");
        serviceData.putString("351","");
    }

    @Test
    public void method2(){
        String code = config.getDescCode();
        StringBuffer sb = new StringBuffer();
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"1",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"2",serviceData,16,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"3",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"4",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"5",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"6",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"7",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"8",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"9",serviceData,19,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"10",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"11",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"12",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"13",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"14",serviceData,18,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"15",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"16",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"17",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"18",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"19",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"20",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"21",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"22",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"23",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"24",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"25",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"26",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"27",serviceData,40,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"28",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"29",serviceData,3,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"30",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"31",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"32",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"33",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"34",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"35",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"36",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"37",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"38",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"39",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"40",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"41",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"42",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"43",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"44",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"45",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"46",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"47",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"48",serviceData,16,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"49",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"50",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"51",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"52",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"53",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"54",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"55",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"56",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"57",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"58",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"59",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"60",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"61",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"62",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"63",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"64",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"65",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"66",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"67",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"68",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"69",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"70",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"71",serviceData,17,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"72",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"73",serviceData,5,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"74",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"75",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"76",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"77",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"78",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"79",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"80",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"81",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"82",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"83",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"84",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"85",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"86",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"87",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"88",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"89",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"90",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"91",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"92",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"93",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"94",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"95",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"96",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"97",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"98",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"99",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"100",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"101",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"102",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"103",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"104",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"105",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"106",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"107",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"108",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"109",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"110",serviceData,18,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"111",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"112",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"113",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"114",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"115",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"116",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"117",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"118",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"119",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"120",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"121",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"122",serviceData,40,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"123",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"124",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"125",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"126",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"127",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"128",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"129",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"130",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"131",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"132",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"133",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"134",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"135",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"136",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"137",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"138",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"139",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"140",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"141",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"142",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"143",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"144",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"145",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"146",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"147",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"148",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"149",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"150",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"151",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"152",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"153",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"154",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"155",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"156",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"157",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"158",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"159",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"160",serviceData,40,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"161",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"162",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"163",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"164",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"165",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"166",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"167",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"168",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"169",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"170",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"171",serviceData,20,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"172",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"173",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"174",serviceData,40,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"175",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"176",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"177",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"178",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"179",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"180",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"181",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"182",serviceData,10,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"183",serviceData,10,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"184",serviceData,8,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"185",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"186",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"187",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"188",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"189",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"190",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"191",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"192",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"193",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"194",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"195",serviceData,3,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"196",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"197",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"198",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"199",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"200",serviceData,26,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"201",serviceData,26,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"202",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"203",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"204",serviceData,10,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"205",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"206",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"207",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"208",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"209",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"210",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"211",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"212",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"213",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"214",serviceData,3,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"215",serviceData,8,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"216",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"217",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"218",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"219",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"220",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"221",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"222",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"223",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"224",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"225",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"226",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"227",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"228",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"229",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"230",serviceData,26,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"231",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"232",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"233",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"234",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"235",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"236",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"237",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"238",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"239",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"240",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"241",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"242",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"243",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"244",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"245",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"246",serviceData,12,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"247",serviceData,10,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"248",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"249",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"250",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"251",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"252",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"253",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"254",serviceData,3,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"255",serviceData,60,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"256",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"257",serviceData,18,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"258",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"259",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"260",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"261",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"262",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"263",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"264",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"265",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"266",serviceData,26,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"267",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"268",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"269",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"270",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"271",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"272",serviceData,2,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"273",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"274",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"275",serviceData,17,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"276",serviceData,6,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"277",serviceData,12,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"278",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"279",serviceData,20,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"280",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"281",serviceData,20,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"282",serviceData,6,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"283",serviceData,10,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"284",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"285",serviceData,8,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"286",serviceData,8,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"287",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"288",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"289",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"290",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"291",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"292",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"293",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"294",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"295",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"296",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"297",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"298",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"299",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"300",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"301",serviceData,4,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"302",serviceData,5,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"303",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"304",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"305",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"306",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"307",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"308",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"309",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"310",serviceData,1,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"311",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"312",serviceData,60,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"313",serviceData,60,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"314",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"315",serviceData,40,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"316",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"317",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"318",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"319",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"320",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"321",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"322",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"323",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"324",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"325",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"326",serviceData,5,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"327",serviceData,5,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"328",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"329",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"330",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"331",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"332",serviceData,30,code));
        sb.append(FixedLenUtil.convertNum(approMsg,fileName,count,"333",serviceData,8,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"334",serviceData,5,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"335",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"336",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"337",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"338",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"339",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"340",serviceData,30,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"341",serviceData,19,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"342",serviceData,11,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"343",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"344",serviceData,1,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"345",serviceData,4,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"346",serviceData,18,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"347",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"348",serviceData,2,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"349",serviceData,50,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"350",serviceData,10,code));
        sb.append(FixedLenUtil.convertStr(approMsg,fileName,count,"351",serviceData,30,code));


    }





    @Test
    public void method5(){

        String jobCode = null;
        if (jobCode!=null && !"".equals(jobCode) && jobCode.length()==5 && jobCode.substring(3,5).equals("00")){
            System.out.println(jobCode);
        }
    }

    @Test
    public void method6(){
        //1.
        System.out.println(Integer.parseInt("01")>10);
        //2.
        System.out.println("ABCDEFGHIJKLMNOPQRSTUVWXYZ".toLowerCase(Locale.ENGLISH));
        //3.
        String regex = "CCNB-APPROVAL-[0-9]{8}-[0-9]{1,5}\\.ok";
        String name = "CCNB-APPROVAL-20150306-01.ok";
        System.out.println(name.matches(regex));
        //4.
        System.out.println(!true);
        //5.
        System.out.println("abc".substring(0,1));
        //6.
        System.out.println("null");
        //编译不通过
        //System.out.println(null);
    }

    @Test
    public void method7(){

        String name = "YUAN LINGLING";
        int index = name.indexOf(" ");
        String res = name.substring(0,index)+"/"+name.substring(index+1,name.length())+"/";
        System.out.println(res);
    }



}
